package com.ruoyi.cases.utils.excel;

import lombok.experimental.UtilityClass;

/**
 * ExceptionUtils class
 *
 * @author xuning
 * @date 2019-02-27 19:21
 */
@UtilityClass
public class ExceptionUtils {

    /**
     * 编译时异常
     */
    public void runtimeException() {
        throw new RuntimeException();
    }

    /**
     * 编译时异常
     */
    public void runtimeException(String message) {
        throw new RuntimeException(message);
    }

    /**
     * 编译时异常
     */
    public void runtimeException(String message, Throwable cause) {
        throw new RuntimeException(message, cause);
    }

    /**
     * 编译时异常
     */
    public void runtimeException(Throwable cause) {
        throw new RuntimeException(cause);
    }


}
